class ZonesController < ApplicationController
  before_filter :require_officer

  def create
    @page_description = "Add new zone"
    @zones = Zone.find(:all)

    if request.get?
      @zone = Zone.new
    else
      @zone = Zone.new(params[:zone])
      if @zone.save
        redirect_to :action => :index
      end
    end
  end

  def index
    @page_description = "Zones"
    @zones = Zone.find(:all)
  end

end
